package com.client.bean;

public class User {
	// 经纬度 终端名称及型号、终端的设备号，用户名、密码、使用单位 一并传到服务器
	// public String longitude="经度";
	// public String latitude="纬度";
	public String deviceName = "终端名称";
	public String deviceType = "型号";
	public String deviceNum = "设备号";
	public String userName = "admin";
	public String password = "123456";
	public String unitName = "使用单位";
	public String userId = "1001";
	public String autologinStr = "false";
	public String rememberStr = "true";
	public String current = "false";

	public String lasttime="";
	public String sessionid="";
	public boolean isAutologin() {
		if ("true".equals(autologinStr)) {
			return true;
		}
		return false;
	}

	public void setAutologin(boolean autologinStr) {
		this.autologinStr = autologinStr + "";
	}

	public boolean isRemember() {
		if ("true".equals(rememberStr)) {
			return true;
		}
		return false;
	}

	public void setRemember(boolean remember) {
		this.rememberStr = remember + "";
	}

	//
	//
	// longitude:经度,
	// latitude:纬度,
	// deviceName:终端名称,
	// deviceType:型号,
	// deviceNum:设备号,
	// userName:用户名,
	// password:密码,
	// unitName:使用单位,
	// public String getLongitude() {
	// return longitude;
	// }
	// public void setLongitude(String longitude) {
	// this.longitude = longitude;
	// }
	// public String getLatitude() {
	// return latitude;
	// }
	// public void setLatitude(String latitude) {
	// this.latitude = latitude;
	// }
	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getDeviceNum() {
		return deviceNum;
	}

	public void setDeviceNum(String deviceNum) {
		this.deviceNum = deviceNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	@Override
	public String toString() {
		return "User [deviceName=" + deviceName + ", deviceType=" + deviceType
				+ ", deviceNum=" + deviceNum + ", userName=" + userName
				+ ", password=" + password + ", unitName=" + unitName
				+ ", userId=" + userId + ", autologinStr=" + autologinStr
				+ ", rememberStr=" + rememberStr + ", current=" + current + "]";
	}

}
